//
//  LanguagesController.m
//  LanguagesTeach
//
//  Created by Niel Santos on 12/16/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import "LanguagesController.h"

@implementation LanguagesController

@synthesize table_view;



// Implement viewDidLoad to do additional setup after loading the view.
- (void)viewDidLoad {

	languagesTableViewDelegator = [[LanguagesTableViewDelegator alloc] init];
	languagesTableViewDelegator.navigationController = self.navigationController;
	languagesTableViewDataSource = [[LanguagesTableViewDataSource alloc] init];
	
	
	table_view.delegate = languagesTableViewDelegator;
	table_view.dataSource = languagesTableViewDataSource;
	self.title = NSLocalizedString(@"title_languages_controller", @"");
	
    [super viewDidLoad];
}


 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
 return YES;
 }




- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc. that aren't in use.
}

- (void)viewDidUnload {
    [super viewDidUnload];
}

- (void)dealloc {
	NSLog(@"On view did unload");
	[languagesTableViewDelegator release];
	[languagesTableViewDataSource release];	
    [super dealloc];
}


@end
